home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / dskut / filed39a.zip / magic < prev    next >
Text File  |  1993-08-04  |  59KB  |  1,727 lines

  1. # Magic file created Wed Aug  4 20:28:33 GMT 1993 by root
  2. #! file
  3. # Magic data for file(1) command.
  4. # Machine-genererated from src/cmd/file/magdir/*; edit there only!
  5. # Format is described in magic(files), where:
  6. # files is 4 on V7 and BSD, 4 on SV, and ?? in the SVID.
  7. # $Id: Localstuff,v 1.2 93/01/05 13:22:25 ian Exp $
  8. # Add any locally-observed files here.  Remember:
  9. # text if readable, executable if runnable binary, data if unreadable.
  10. #
  11. # Alliant FX series a.out files:
  12. # If the FX series is the one that had a processor with a 68K-derived
  13. # instruction set, the "short" should probably become "beshort" and the
  14. # "long" should probably become "belong".
  15. # If it's the i860-based one, they should probably become either the
  16. # big-endian or little-endian versions, depending on the mode they ran
  17. # the 860 in....
  18. #
  19. 0    short        0420        0420 Alliant virtual executable
  20. >2    short        &0x0020        common library
  21. >16    long        >0        not stripped
  22. 0    short        0421        0421 Alliant compact executable
  23. >2    short        &0x0020        common library
  24. >16    long        >0        not stripped
  25. #
  26. # magic.apl:
  27. #
  28. 0    long        0100554        APL workspace (Ken's original?)
  29. #
  30. # "ar", for all kinds of archives.
  31. #
  32. # XXX - why are there multiple <ar> thingies?  Note that 0x213c6172 is
  33. # "!<ar", so, for new-style (4.xBSD/SVR2andup) archives, we have:
  34. #
  35. # 0    string        !<arch>        current ar archive
  36. # 0    long        0x213c6172    archive file
  37. #
  38. # and for SVR3.1 archives, we have:
  39. #
  40. # 0    string        \<ar>        System V Release 1 ar archive
  41. # 0    string        =<ar>        archive
  42. # 0    string        =<ar>        archive
  43. #
  44. # XXX - did Aegis really store shared libraries, breakpointed modules,
  45. # and absolute code program modules in the same format as new-style
  46. # "ar" archives?
  47. #
  48. 0    string        !<arch>        current ar archive
  49. >8    string        __.SYMDEF    random library
  50. >0    belong        =65538        - pre SR9.5
  51. >0    belong        =65539        - post SR9.5
  52. >0    beshort        2        - object archive
  53. >0    beshort        3        - shared library module
  54. >0    beshort        4        - debug break-pointed module
  55. >0    beshort        5        - absolute code program module
  56. 0    string        \<ar>        System V Release 1 ar archive
  57. 0    string        =<ar>        archive
  58. #
  59. # XXX - from "vax", which appears to collect a bunch of byte-swapped
  60. # thingies, to help you recognize VAX files on big-endian machines;
  61. # with "leshort", "lelong", and "string", that's no longer necessary....
  62. #
  63. # 0    long        0x3c61723e    VAX 5.0 archive
  64. #
  65. 0    long        0x213c6172    archive file
  66. 0    lelong        0177555        very old VAX archive
  67. 0    leshort        0177555        very old PDP-11 archive
  68. #
  69. # XXX - "pdp" claims that 0177545 can have an __.SYMDEF member and thus
  70. # be a random library (it said 0xff65 rather than 0177545).
  71. #
  72. 0    lelong        0177545        old VAX archive
  73. >8    string        __.SYMDEF    random library
  74. 0    leshort        0177545        old PDP-11 archive
  75. >8    string        __.SYMDEF    random library
  76. #
  77. 0    string        =<ar>        archive
  78. #
  79. # From "pdp":
  80. #
  81. 0    lelong        0x39bed        PDP-11 old archive
  82. 0    lelong        0x39bee        PDP-11 4.0 archive
  83. #
  84. 0    string        -h-        Software Tools format archive text
  85. # "arc" archiver
  86. #0    byte        26        'arc' archive
  87. #>1    byte        0        (empty)
  88. #>1    byte        1        (old format)
  89. #
  90. # >>>>> ARJ archiver <<<<< (source: arj 2.39a beta)
  91. #     ARJ archives contains two types of header blocks:
  92. #
  93. #    Archive main header - This is located at the head of the archive
  94. #    Local file header   - This is located before each archived file
  95. #
  96. #     Structure of main header (low order byte first):
  97. #
  98. #     Bytes Description
  99. #     ----- -------------------------------------------------------------------
  100. #       2   header id (main and local file) = 0xEA60 or 60000U
  101. #       2   basic header size (from 'first_hdr_size' thru 'comment' below)
  102. #         = first_hdr_size + strlen(filename) + 1 + strlen(comment) + 1
  103. #         = 0 if end of archive
  104. #
  105. #       1   first_hdr_size (size up to and including 'extra data')
  106. #       1   archiver version number [2.30==v4 ?  2.39==v5 ?]
  107. #       1   minimum archiver version to extract
  108. #       1   host OS   (0 = MSDOS, 1 = PRIMOS, 2 = UNIX, 3 = AMIGA, 4 = MAC-OS)
  109. #             (5 = OS/2, 6 = APPLE GS, 7 = ATARI ST, 8 = NEXT)
  110. #             (9 = VAX VMS)
  111. # [text deleted]
  112. 0    short        0xea60        arj archive
  113. #
  114. # >>>>> ARC <<<<<  (source: Greg Roelofs roe2@midway.uchicago.edu)
  115. #
  116. 0    string        \032\010        Arc archive
  117. # 0    short        0x1a08            Arc archive
  118. # 0    short        0x081a            Arc archive
  119. #
  120. # >>>>> LHARC/LHA <<<<<  (source: Greg Roelofs roe2@midway.uchicago.edu)
  121. #
  122. 2    string        -lh0-            Lharc 1.x archive
  123. 2    string        -lh1-            Lharc 1.x archive
  124. 2    string        -lz4-            Lharc 1.x archive
  125. 2    string        -lz5-            Lharc 1.x archive
  126. #    [never seen any but the last:]
  127. 2    string        -lzs-            LHa 2.x? archive [lzs]
  128. 2    string        -lh\ -        LHa 2.x? archive [lh ]
  129. 2    string        -lhd-            LHa 2.x? archive [lhd]
  130. 2    string        -lh2-            Lha 2.x? archive [lh2]
  131. 2    string        -lh3-            LHa 2.x? archive [lh3]
  132. 2    string        -lh4-            LHa 2.x? archive [lh4]
  133. 2    string        -lh5-            LHa (2.x) archive
  134. #
  135. # >>>>> ZIP <<<<<  (source: Greg Roelofs roe2@midway.uchicago.edu)
  136. # [extract ver is from 1st file only]
  137. #
  138. 0    string        PK\003\004        Zip archive
  139. >4    string        \011            (at least v0.9 to extract)
  140. >4    string        \012            (at least v1.0 to extract)
  141. >4    string        \013            (at least v1.1 to extract)
  142. >4    string        \024            (at least v2.0 to extract)
  143. #
  144. # >>>>> ZOO <<<<<  (source: Greg Roelofs roe2@midway.uchicago.edu)
  145. #
  146. # [GRR:  don't know if all of these versions exist, or if some missing...]
  147. #0        string        ZOO             Zoo archive
  148. # [DH: Use GRR's alternate identifiers]
  149. 0x2a    string   \xdc\xa7\xc4\xfd
  150. >0 string         >0          %.16s
  151. # >4    string        1.00            (v%4s)
  152. # >4    string        1.10            (v%4s)
  153. # >4    string        1.20            (v%4s)
  154. # >4    string        1.30            (v%4s)
  155. # >4    string        1.40            (v%4s)
  156. # >4    string        1.50            (v%4s)
  157. # >4    string        1.60            (v%4s)
  158. # >4    string        1.70            (v%4s)
  159. # >4    string        1.71            (v%4s)
  160. # >4    string        2.00            (v%4s)
  161. # >4    string        2.01            (v%4s)
  162. # >4    string        2.10            (v%4s)
  163. >32    string        \001\000        (modify: v1.0+)
  164. >32    string        \001\004        (modify: v1.4+)
  165. >32    string        \002\000        (modify: v2.0+)
  166. >70    string        \001\000        (extract: v1.0+)
  167. >70    string        \002\001        (extract: v2.1+)
  168. 0        string        ZOO             Zoo archive
  169. # [GRR:  the following are alternate identifiers]
  170. #0x2a    long        0xdca7c4fd        Zoo archive
  171. #0x2a    long        0xc4fddca7        Zoo archive
  172. #
  173. # >>>>> HPACK <<<<<  (source: Peter Gutmann pgut1@cs.aukuni.ac.nz)
  174. # Here's the entry from the local magic file - it's for Ultrix, the format
  175. # may not be 100% the same as everyone else's.  Basically the ID bytes are a
  176. # 4-byte string 'HPAK' at the start.  Anything after that is indeterminate,
  177. # since for example if the archive is encrypted the entire thing will be one
  178. # big block of white noise - it's only the 4-byte ID you can rely on 100%. 
  179. # Once the ISO approves ISO 8824 and 8825 I'll use that format, which will
  180. # provide a lot more information, but that will probably still take awhile....
  181. #   4       string          HPAK            1,1     HPACK archive
  182. 0    string    HPAK    HPACK archive
  183. #
  184. # AT&T 3B machines
  185. #
  186. # The `versions' should be un-commented if they work for you.
  187. # (Was the problem just one of endianness?)
  188. #
  189. # 3B20
  190. #
  191. 0    beshort        0550        3b20 COFF executable
  192. >12    belong        >0        not stripped
  193. #>22    beshort        >0        - version %ld
  194. 0    beshort        0551        3b20 COFF executable (TV)
  195. >12    belong        >0        not stripped
  196. #>22    beshort        >0        - version %ld
  197. #
  198. # WE32K
  199. #
  200. 0    beshort        0560        WE32000 COFF
  201. >18    beshort        ^00000020    object
  202. >18    beshort        &00000020    executable
  203. >12    belong        >0        not stripped
  204. >18    beshort        ^00010000    N/A on 3b2/300 w/paging
  205. >18    beshort        &00020000    32100 required
  206. >18    beshort        &00040000    and mau hardware required
  207. >20    beshort        0407        (impure)
  208. >20    beshort        0410        (pure)
  209. >20    beshort        0413        (demand paged)
  210. >20    beshort        0443        (target shared library)
  211. >22    beshort        >0        - version %ld
  212. 0    beshort        0561        WE32000 COFF executable (TV)
  213. >12    belong        >0        not stripped
  214. #>18    beshort        &00020000    - 32100 required
  215. #>18    beshort        &00040000    and mau hardware required
  216. #>22    beshort        >0        - version %ld
  217. # Sound formats, from Jan Nicolai Langfeldt <janl@ifi.uio.no>
  218. #
  219. # XXX -what the hell is the "mips" stuff doing there?  It looks like
  220. # the archive stuff from "iris"....
  221. #
  222. 0       string          .snd            audio data:
  223. >12     long            1               8-bit u-law,
  224. >12     long            2               8-bit linear PCM,
  225. >12     long